package cn.jieruoda.eb.user.domain.repository;

import cn.jieruoda.eb.user.domain.entity.UserSign;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;
import java.util.Optional;

@Repository
public interface UserSignRepository extends JpaRepository<UserSign, Integer> {
    List<UserSign> findByUidAndType(Integer uid, Boolean type);
    Optional<UserSign> findByUidAndCreateDay(Integer uid, LocalDate createDay);
    List<UserSign> findByUidAndCreateDayBetween(Integer uid, LocalDate startDate, LocalDate endDate);
} 